<template>
  <t-dialog :header="header" :confirmBtn="null" :visible.sync="visible" :onClose="closeDialog"     :closeOnOverlayClick="false"
            width="40%">
     <wechat-login
       :appid="appid" :redirect_uri="redirect_uri">
     </wechat-login>
  </t-dialog>
</template>

<script>
import WechatLogin from "../../../components/WechatLogin/index.vue";

export default {
  name: "wechat-bind",
  components:{
    WechatLogin
  },
  props: ["header"],
  data(){
    return {
      visible: true,
      appid: 'wxbdc5610cc59c1631',
      redirect_uri: 'https%3A%2F%2Fpassport.yhd.com%2Fwechat%2Fcallback.do',
    }
  },
  methods:{
    onSubmit() {

    },
    closeDialog() {
      this.$emit("update:visible", false);
    },
  }
}
</script>

<style scoped>

</style>
